#include <iostream>
using namespace std;

class Student {
public:
	Student (const string& name, int no):m_name(name),m_no(no) {}
	void who (void) {
		cout << "我是" << m_name << "学号:" << m_no << endl;
	}
	string m_name;
	int m_no;
	int m_age;
};

int main (void)
{
	void (Student::*pwho) (void) = &Student::who;
	Student s("乔峰", 10001);
	Student *ps = &s;

	(s.*pwho) ();
	(ps->*pwho) ();
	return 0;
}
